const express = require("express");
const router =  express.Router();
const {checkToken} = require('../utils/utils');
const {lovaAdd,loveList,loveRemove,lovaPay} = require('../controller/love')
router.use(checkToken)
//添加藏品-必须在请求头携带令牌 - 键：Authorization  值：令牌字符串
router.post('/api/add',lovaAdd);
//获取藏品列表
router.get('/api/list/:id',loveList)
//删除单个藏品
router.post('/api/remove',loveRemove)
//支付接口
router.post('/api/pay',lovaPay)
module.exports = router